o <template lang="pug">
  s-table.tabContent(
    ref="table"
    :column="tableObj.column"
    :filterProps="{items: filterItems}"
    :queryFn="tableObj.getList"
    title="执业人员监控"
    )
</template>
<script>
import { STable } from '@/components'
import { getPersonList } from '@/api/libary'

const column = [
  {
    prop: 'personId',
    label: '姓名'
  },
  {
    prop: 'name',
    label: '身份证',
    align: 'center'
  },
  {
    prop: 'type',
    label: '执业类型',
    align: 'center'
  },
  {
    prop: 'idcard',
    label: '所在机构',
    align: 'center'
  },
  {
    prop: 'sicard',
    label: '就诊时间',
    align: 'center'
  },
  {
    prop: 'signDate',
    label: '应认证时间',
    align: 'center'
  },
  {
    prop: 'recogPic',
    label: '实际上班打卡时间',
    width: '186',
    align: 'center'
  },
  {
    prop: 'sicard',
    label: '认证照',
    align: 'center'
  },
  {
    prop: 'sicard',
    label: '认证状态',
    align: 'center'
  },
  {
    prop: 'sicard',
    label: '实际下班打卡时间',
    width: '186',
    align: 'center'
  }
]

export default {
  components: {
    STable
  },
  computed: {
    filterItems () {
      return [
        {
          key: 'keywords',
          label: '关键信息'
        },
        {
          key: 'addDate',
          label: '认证日期',
          type: 'daterange'
        },
        {
          key: 'type',
          label: '执业类型',
          type: 'date'
        },
        {
          key: 'inDate',
          label: '认证状态',
          type: 'date'
        }
      ]
    }
  },
  data () {
    return {
      tableObj: {
        column,
        getList: getPersonList
      }
    }
  },
  methods: {
  }
}
</script>
